package com.snowwolf.application.controller.user.service.impl;

import com.snowwolf.application.controller.user.service.UserBusService;
import com.snowwolf.baseUtil.base.RestResponse;
import com.snowwolf.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/3/3 15:54
 * @modified by:
 * @versions：0.1.0
 */
@Service
public class UserBusServiceImpl implements UserBusService{
    @Autowired
    private IUserService userService;
    @Override
    public RestResponse getUser(Long userId) {
        return new RestResponse(userService.findOne(userId));
    }
}
